<div class="header">
     <div style="float:right;padding-top:10px;"><?php echo(
$this->Html->link( 
	$this->Html->image("american_flag.png"), 
	array('controller'=>'users','action' => 'changeSiteLanguage/eng'), 
	array('escape' => false,'alt'=>'English','title'=>'English'))); ?>
        <?php echo(
$this->Html->link( 
	$this->Html->image("hongkong-flag.gif"), 
	array('controller'=>'users','action' => 'changeSiteLanguage/zho'), 
	array('escape' => false,'alt'=>'Chinese','title'=>'Chinese'))); ?>
           
           </div>
    <div class="logo"> <a href="#">eProbono</a></div>
    <div class="welcome">
      <h1><?php echo __('DASHBOARD', true);?></h1>
      
     <?php
     if($loggedInUSerRoleId){
	  $roleLoggedInUser = $roles[$loggedInUSerRoleId];
     }else{
	  $roleLoggedInUser = "Super Admin";
     }
     
     echo __('WELCOME', true)." : "; echo $user_first_name." (".$roleLoggedInUser.")"; ?>
      <br>
      <?php
      $class = "active";
       echo $this->Html->link('Logout', array('controller'=>'users', 'action'=>'logout'), array('class' => ''.$class.'', 'label'=>false));?>
      </div>
      
  </div>
  
  <!--header End-->
  <!--navigation Start-->
  <div class="navigation">
    <ul>
     <?php
     
	 
	  if(!isset($selectedTab)){
	       $selectedTab = "";
	  }
	  $mainModule = array('home', 'work_flow', 'finance_control','admin_control','system_admin');
	  
     ?>
      <li><?php
	       if(in_array($selectedTab, $mainModule) && $selectedTab == "home"){
		    $cls = "active";
	       }else{
		    $cls = "";
	       }
            echo $this->Html->link(__('HOME', true), array('controller'=>'users', 'action'=>'mydashboard'), array('label'=>false, "class"=>"$cls"));?></li>
      
      <?php
      if(in_array("work_flow", $mainTabsArr)){
	  
	       if(in_array($selectedTab, $mainModule) && $selectedTab == "work_flow"){
		    $cls = "active";
	       }else{
		    $cls = "";
	       }
      echo '<li>';
            echo $this->Html->link(__('WORK_FLOW', true), array('controller'=>'', 'action'=>$mainTabsLinkArr['work_flow']['module_url']), array('label'=>false, "class"=>"$cls"));?></li>
      
      <?php
      }
      
      if(in_array("finance_control", $mainTabsArr)){
	  echo '<li>';
	  if(in_array($selectedTab, $mainModule) && $selectedTab == "finance_control"){
		    $cls = "active";
          }else{
		    $cls = "";
	       }
	  echo $this->Html->link(__('FINANCE_CONTROL', true), array('controller'=>'', 'action'=>$mainTabsLinkArr['finance_control']['module_url']), array('label'=>false, "class"=>"$cls"));?></li>
      
      <?php
      }
      
      if(in_array("admin_control", $mainTabsArr)){
	  echo '<li>';
      
      if(in_array($selectedTab, $mainModule) && $selectedTab == "admin_control"){
		    $cls = "active";
	       }else{
		    $cls = "";
	       }
            echo $this->Html->link(__('ADMIN_CONTROL', true), array('controller'=>'', 'action'=>$mainTabsLinkArr['admin_control']['module_url']), array('label'=>false, "class"=>"$cls"));?></li>
      <?php
      }
      
      if(in_array("system_admin", $mainTabsArr)){
      echo '<li>';
      if(in_array($selectedTab, $mainModule) && $selectedTab == "system_admin"){
		    $cls = "active";
	       }else{
		    $cls = "";
	       }
            echo $this->Html->link(__('SYSTEM_ADMIN', true), array('controller'=>'', 'action'=>$mainTabsLinkArr['system_admin']['module_url']), array('label'=>false, "class"=>"$cls"));
	    echo '</li>';
      }
	    ?>
      
    </ul>
  </div>